package com.ykh.mybbsdemo.dao.pojo.dto;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-29
 * Time: 20:44
 */
//接收参数
@Data
public class PageParams {

    private int page = 1;

    private int pageSize = 10;

    private String condition ;

    private Long categoryId;

    private Long tagId;

    private String year;

    private String month;

    public String getMonth(){
        if (this.month != null && this.month.length() == 1){
            return "0"+this.month;
        }
        return this.month;
    }

}
